<style type="text/css">

#wview{
background-color:#F4F4F4;
}
#table1{
background-color:#FFF8E5;
padding:2px 2px 2px 2px

}
#table1 td{
width:110;
height:150;
vertical-align:top;
border:1.5px solid #FCB183;
text-align:center;
color:#FF6407;
font-size: 12px;

}


</style>
<div id='wview'>
<table cellpadding="0" cellspacing="0" width="100%"
	style="margin-top:5px">
	<tr>
		<td id='content-header-left' style="text-align:center" height='29px'>Wall Papers</td>
		<td id='content-header-center' style="text-align:center"><?=ucfirst(trim_name($categeoryname,30))?> Wallpapers</td>
		<td id='content-header-right'></td>

	</tr>
	<tr>
		<td id="gossip_left_right" bgcolor="#FF9853" valign="top">
		
		<table>
			   		<?php 
			   		
	   foreach ($wcategeories->result() as $item ) {
			?>
			 <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a
				href="<?=base_url();?>wallpapers/details/<?=$item->id?>"
				><?=ucfirst(trim_name($item->catname,15))?></a></td>
				</tr>
			
			
			  
               <? }?>	
			
		</table>
		
		</td>
		
		<td align='center'>

	
	 
		
		<table id='table1' cellpadding='3px' cellspacing='2px' align='left'>
			<tr>
				<td height='15px' colspan='4'
					style="background-color:#FF6407;text-align:left;padding-top:5px;color:#FFF8E5;font-weight:bold"><?//=$item['catname'];?>
				</td>
			</tr>
			<tr>
			<? $count=1;  foreach($images as $item){?>
			
				<td height='150px' width='140px'><img
					src="<?=base_url ();?>assets/wallpapers/image<?=$item['id']?>_size1_thumb.jpg"
					style="vertical-align: top" /><div style="align=bottom;padding-top:5px;"><?=ucfirst(trim_name($item['title'],15))?><br/>
						   			 
					<a href="<?=base_url();?>assets/wallpapers/image<?=$item['id']?>_size1.jpg" class="pagelink" target="_blank">(1280x768)</a><br/>
					<a href="<?=base_url();?>assets/wallpapers/image<?=$item['id']?>_size2.jpg" class="pagelink" target="_blank">(1024x768)</a>
					<a href="<?=base_url();?>assets/wallpapers/image<?=$item['id']?>_size3.jpg" class="pagelink" target="_blank">(800x600)</a>
					
					</div>
					</td>
			
			
			<?if($count%4==0)
			{
				echo "</tr><tr>";
			}
			$count++; 
                 }  ?>
			</tr>
			<tr>
				<td height='20px' colspan='4'
					style="background-color: #CCC7CB; text-align: right;"></td>
			</tr>



		</table>
		
		
		
		</td>
		<td></td>
	</tr>

</table>
<? //echo $this->pagination->create_links();?>
</br>
</br>
</div>